package com.cvtt.xmpp;

import java.util.Collection;

import org.jivesoftware.smack.RosterEntry;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smackx.packet.VCard;

public interface XMPPListener {
	
	public void onLoginEvent(int eventCode);
	public void onStatusEvent(int eventCode);
	public void onKeepAlive(int afterTime);
	
	public void onMessageEvent(String msgID,int eventCode);
	public void onRecvMessage(Message msg);
	
	public void onInfoLoaded(VCard info);
	
	public void onContactsLoaded(Collection<RosterEntry> xmppRoster);
	public void onAddContact(String jid,String remark);
	public void onDelContact(String jid);
	public void onContactAdded(RosterEntry rosterEntry);
	public void onContactDeleted(String jid);
	public void onContactInfoLoaded(String jid,VCard info);

}
